<volist id="menu" name="leftmenu" >
<h3 class="f14"><span class="switchs cu on" title="{$lang.expand_or_contract}"></span>{$menu.name}</h3>
<ul>
	<volist id="action" name="menu['actions']" >
    	<li id="_MP{$key}" class="sub_menu"><a href="javascript:_MP('{$action.action}','{:U($menu['module'].'/'.$action['action'])}');" hidefocus="true" style="outline:none;">{$action.name}</a></li>
	</volist>
</ul>
</volist>
<script type="text/javascript">
$(".switchs").each(function(i){
	var ul = $(this).parent().next();
	$(this).click(
	function(){
		if(ul.is(':visible')){
			ul.hide();
			$(this).removeClass('on');
				}else{
			ul.show();
			$(this).addClass('on');
		}
	})
});
</script>